const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
    app.use(
        '/wmsapi/',
        createProxyMiddleware({
            target: 'http://localhost:5566',
            // target: 'http://121.40.236.16:5566',
            pathRewrite: { '^/wmsapi': '' },
            changeOrigin: true
        })
    );
};
